package entities;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import java.io.Serializable;

public class Answer implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final int Error = -1;
	private int questionID; // PrimaryKey
	private int subjectID; // PrimaryKey
	private int selectedAnswer;

	/**
	 * constructor
	 * 
	 * @param questionID
	 * @param subjectID
	 * @param selection
	 */
	public Answer(int questionID, int subjectID, int selection) {
		super();
		this.questionID = questionID;
		this.subjectID = subjectID;
		this.selectedAnswer = selection;
	}

	/**
	 * empty constructor
	 */
	public Answer() {

	}

	// ------------------
	// Setters & Getters
	// ------------------

	/**
	 * @return the questionID
	 */
	public int getQuestionID() {
		return questionID;
	}

	/**
	 * @param questionID
	 *            the questionID to set
	 */
	public void setQuestionID(int questionID) {
		this.questionID = questionID;
	}

	/**
	 * @return the subjectID
	 */
	public int getSubjectID() {
		return subjectID;
	}

	/**
	 * @param subjectID
	 *            the subjectID to set
	 */
	public void setSubjectID(int subjectID) {
		this.subjectID = subjectID;
	}

	/**
	 * @return the selectedAnswer
	 */
	public int getSelectedAnswer() {
		return selectedAnswer;
	}

	/**
	 * @param selectedAnswer
	 *            the selectedAnswer to set
	 */
	public void setSelectedAnswer(int selectedAnswer) {
		this.selectedAnswer = selectedAnswer;
	}
}
